package view;

import javax.swing.ImageIcon;
import javax.swing.JFrame;

public class MainFrame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * @param imageString 
	 * 
	 */

	public MainFrame(String frameTitel, int frameWidth, int frameHeight, String imageString) {

		this.setSize(frameWidth, frameHeight);
		this.setTitle(frameTitel);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		ImageIcon image = new ImageIcon("src/resources/icons/"+imageString);
		this.setIconImage(image.getImage());
		this.setVisible(true);

	}

}
